<?php
class IndexAction extends Action{

	public function _initialize() {
		
	}
	public function index(){
	  $list =M('goods_type')->where('type_id!=15')->order('`display_id` asc')->findAll();
	  foreach( $list as $k=>$v){
	     $list[$k]['goods'] =M('goods')->where(" `gtype`={$v['type_id']}")->limit('6')->order('utime DESC')->findAll();
	  }
	 $qiugoulist = M('qiugou')->limit('16')->order('utime DESC')->findAll();
	 //print_r($qiugoulist);
	 $this->assign('list',$list);
	 $this->assign('qiugoulist',$qiugoulist);
	 $this->setTitle("中国大学生生活服务网，大学生家园，大学信息网，大学二手教材，二手信息");
	  $this->display();
	}
	
}
?>